package com.esun.payment_api.service;

import com.esun.payment_api.bean.InvContractDetailBean;
import com.esun.payment_api.domain.InvFormContract;
import com.esun.payment_api.domain.SysDictContract;
import com.esun.payment_api.dto.PInvInsParam;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface InvFormContractService {
    //查询发票-合同列表
    List<InvFormContract> getListByInvId(Integer invId);

    //根据id删除发票-合同
    int deleteById(Integer invId, Integer id);

    //删除合同并且删除相关信息
    void deleteByIdStr(PInvInsParam param);

    //新增多条记录
    int insertMultiple2(Integer invId, List<SysDictContract> records);

    //新增合同--存储过程
    void insertMultiple(PInvInsParam param);

    //获取可选择的合同列表
    List<SysDictContract> getContractList(Short coId, Integer invId, Integer cusId, String searchStr, Integer pageSize, Integer pageNum);

    List<InvContractDetailBean> getDetailByInvId(Short coId, Integer invId);
}
